﻿<%@ Page Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="unpingjiainfo.aspx.cs"
 Inherits="map.member.unpingjiainfo" Title="取消评价操作" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
     <link href="../../outstyle.css" rel="stylesheet" type="text/css" />
<script src="../../js/dropdowncontent.js" type="text/javascript"></script>
     <style type="text/css">
         .style1
         {
             width: 100%;
         }
         .style2
         {
             width: 99px;
             vertical-align:top;
         }
         .td_0
         {
             width:30%;
             text-align:right ;
         }
         .td_1
         {
             width:70%;
             text-align:left ;
         }
          .SubmitCharge
        {
            background:url(/img/btnTmp_orange.png) no-repeat 0px -34px;
            border:none;
            text-align:center;
            padding-left:20px;
            font-weight:bold ;
            cursor:pointer ;
            width:100px;
            height:34px;
        }
        
        .validateErrorMsg
        {
            background:url(/img/errorMsg.ico) no-repeat ;
            padding-left:20px;
            border:solid 1px red;
            font-size:smaller;
            padding:1px 2px 1px 20px;  
            color:Red;
        } 
     </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">

    <table class="style1">
        <tr>
            <td class="td_0">
                ID：</td>
            <td class="td_1">
                <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                评价人：</td>
            <td class="td_1">
                <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                被评价人：</td>
            <td class="td_1">
                <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                评价类型：</td>
            <td class="td_1">
                <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                标题：</td>
            <td class="td_1">
                <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                描述：</td>
            <td class="td_1">
                <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="td_0">当前用户名：</td>
            <td class="td_1">
                <asp:Label ID="CurrentUserLabel" runat="server"  > </asp:Label> 
            </td>
        </tr>
        <tr>
            <td class="td_0">密码：</td>
            <td class="td_1">
                <asp:TextBox ID="PasswordTextBox"  Width="150px"   TextMode="Password"  runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                验证码：
            </td>            
            <td class="td_1">
                 <table>
                    <tr>
                        <td style=" vertical-align:top; ">
                            <input  type="text" id="CheckupCodeInput" style=" width:80px" value="" />
                        </td>
                        <td style=" vertical-align:top; ">
                            <img   title="不区分大小写" src ="/controls/RandomCheckupCoding.aspx?count=4&key=test" id="checkupImg"/>
                        </td>
                        <td style=" vertical-align:middle ; ">
                            <a title="不区分大小写" href ="#1" onclick="refreshCheckupImg();" style=" font-size:smaller;">看不清楚，换一张</a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="td_0">
                &nbsp;</td>
            <td class="td_1">                  
                <asp:Button ID="取消操作" CssClass="SubmitCharge" OnClientClick="return validateSubmit();" runat="server" Text="取消评价" onclick="取消操作_Click" />
                <asp:Label ID="Label1" runat="server" style="color: #FF0000" Text="注意：取消评价操作需要支付50元。"></asp:Label>
            </td>
        </tr>
    </table>
    <script src="/js/PageValidateUtil.js" type="text/javascript"></script>    
    <script type="text/javascript">
        var idPrefix = "ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_";
        //刷新验证码
        function refreshCheckupImg() {
            var checkupImg = document.getElementById("checkupImg");
            checkupImg.src = "/controls/RandomCheckupCoding.aspx?count=4&key=test&dd=" + Date().toString();
        }
        //验证码
        function validateCheckUp() {
            var checkupInput = document.getElementById("CheckupCodeInput");
            var result = AjaxFunction.GetSessionValue("test_checkcode");
            if (result.value != null && result.value != "") {
                return (result.value.toLowerCase() == checkupInput.value.toLowerCase());
            }
            return false;
        }
        function validatePassword() {
            var userid = document.getElementById(idPrefix + "CurrentUserLabel").innerHTML;
            var password = document.getElementById(idPrefix + "PasswordTextBox").value;
            var result = AjaxFunction.ValidatePassword(userid, password);
            if (result.value != null && result.value == true)
                return true;
            return false;
        }
        PageValidateUtil.CustomerValidate("CheckupCodeInput", validateCheckUp, "验证码不正确！", "validateErrorMsg", 2);
        PageValidateUtil.CustomerValidate(idPrefix + "PasswordTextBox", validatePassword, "密码不正确", "validateErrorMsg", 2);

        function validateSubmit() {
            var errorCount = PageValidateUtil.initImidValidates(["CustomerValidate", "CustomerValidate"], [
                            ["CheckupCodeInput", validateCheckUp, "验证码不正确！", "validateErrorMsg", 1],
                            [idPrefix + "PasswordTextBox", validatePassword, "密码不正确", "validateErrorMsg", 1]]);
            return (errorCount <= 0);
        }
    </script>
</asp:Content>
